CosmoSim

CosmoSim is a simulator for gravitational lensing.

datagen script

The main simulator application is the datagen.py script.

Simple batch mode

The simples run of the simulator specifies a CSV file with parameters, and generates the distorted image for each row.

python3 CosmoSimPy/datagen.py  --csvfile Dataset/debug.csv

Some useful options

Extra output images

These options create additional image files at different stages of the simulation

Setting parameters on the command line

Parameters which are not set in the CSV file, can be set on the command line. The CSV file takes precedence though.

Undocumented options

These options are not used in current research and have not been tested in recent versions, if they have been implemented at all.

It is also possible to generate a single image by ommitting the CSV file and giving all parameters on the command line.